More work on DataModelSqlWriter and command builders.