Re-enable AutoCommit and remove Commit before closing connection

Close #33
Merge pull request #54 from philrandal/master

Fix off by one error
Merge branch 'master' of https://github.com/mailwatch/1.2.0