adding back foreign key constraints