Trying to connect to the database