Peer review for new Audit Tables

Please look at my changes.
Some require a db connection to the main software - the "CurrentClasses" class in particular.

Thanks
Update the tests to pass example $classes data