fixing DB connection issue