Added a bunch of foreign keys.