Added db connectivity