added db connectivity