extracted data access from Entity into Operations.  Extract sql writing tasks into EntitySqlWriter.