tried to connect to database