Return the proper ID after inserting