Testing db connectivity