Fixing DB connection error