Core Mysql.class.php bugfixing