added sql to sync