Add foreign key constraints