Update to work with updated mysql.php