revise up to sql
cleaned up through identifying DMLs