implement diffdb, dbsync