Get the proper id after the insert