move db_sync to common recipe