Create function listTableFields at class DB.
Replace SC_Query to DB .