lots of cleanup, make date formatting/parsing more consistent, create CsvDataWriter on top of TableWritter to facilitate creating an SqlDataWriter