modified mysql.class.php