Add trigger for touching associated tables on inserts/updates/deletes.

I needed to change the specs a bit to get them working with the more recent versions of RSpec and Sequel.