database sync script integrated