Can I use database for training bot?

I dont think so … nobody but you knows the schema of your data. F.e. i wrote some data in non-standard .txt file and then I wrote a script to generate rasa .md files from it.

qa2md.py

You have to do something similar, but from DB.