Fix mysqldb bugs
Merge pull request #216 from combro2k/release-1.10

Fix mysqldb bugs