Add logging to MySQL
loop count
Merge pull request #1 from LdeRuiter/master

mysqldb support