Add missing foreign keys