refactoring columns toSql