Fixes to support MySQL.
Merge pull request #2 from nalarcon/master

Fixes to support MySQL.