moving db initialization in method get_db
Merge pull request #1 from rupalibehera/master

moving db initialization in method get_db