Fix mysqldb bugs

There were some bugs where the xlrstats won't log anymore it was due the ? in the queries.
This seems to be changed?
After I changed the file it worked again