problems while connecting to database