fixing DB