MySQL and sanitized fix

for issue 18/19