That's what i usually do but i want to know if there is a more efficient way to set the foreign key on insert