Debugging database sync