how to communicate with your database