Added initial foreign keys to db tables.