trying to connect to database