added missing foreign keys