added local db connectivity