MysqlMixin: check if connection argument is given
code cleanup
fixed typo