implement new way of calling mysql-api functions through other threads
fix issue where 'mysql_set_charset' only changes the charset on the main connection (issue #2)