fixing config into db