Added foreign keys to db.dbinit.

Added all of the foreign keys to dbinit.