fixing connection problem

Fixing database connection issue