database changes fixing