separate out class tsMySQLQuery