db connectivity check