db synch fixes