Refactor methos to build SQL DML.