trying to connect to the database