connected to the database