Implemented the change logger and teh change reverser. At least foreign keys now work.