Database and Intents working