Added a bunch of triggers and functions. Crunch time. Project due next week on Wed.