applying database changes