fixed mysql.lua - converted to MySQLoo from tmysql
DO NOT USE, it has not been tested because the database structure is missing.