fixed db sync