You are asking how feasible this approach is, but you provide no details about the restrictions and requirements. The only thing you did mention is needing the data to pass around in real time. You ask if it is a good idea to use a db, but that also depends on whatever you are trying to achieve. This question should be probably asked in software engineering stack exchange, and try to provide more details about your problem there. — kmaork 9 secs ago