Unable to make a connection to the database