Rasa database connectivity

can you tell me in detail and provide an example code that how you stored the intents online in a db ?