Retrieve the new primary key when inserting rows and set it on the object we just inserted