Fixing DB config