modified MysqlData.php buggy