minor typo
bug-fix: move the trim operation

- the trim operation should be performed before a request
  for adjudication data is made
bug-fix: add debug info, fix bad table alias

- add adodb error debugging to all query types and statements
- fix incorrect table name alias found after running with
  debugging info