fixed DB sync errors