Defer foreign key constraints to avoid ordering issues