fixing some bugs discovered while running against postgres.  Triggers do generate and they do work.  Still have some SQL issues to iron out with data types and sizes when generating or altering audit tables.