bug fix: syncing between nosql and sql