Set the MySQL autocommit mode to true

This seems to fix the main problem in #10. If you are using a MySQL engine that supports transactions, then MySQL starts a transaction automatically which means if you don't commit there's a pretty good chance your data isn't going to be saved. This change turns on autocommit which commits each statement when it's run.