Add explicit schema and change count to a simpler statement
Add error checking and explcit commits to SqlTableWriter to close #31