Update the primary key of the data