Fix VSM-Quantum database sync issues.