It's unclear what you ask. What database you want to use? And what is real-time database according to your understanding? i.e. you can work in real time with any database as long as you can connect to it (one way or another - db server, or via an API, etc.).
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs