add loop logic method, formatList, to simplify code...
extract generic utility methods from GenericSql to GenericUtils class.