Sync with DB.