Sync the database local on iOS with cloud