change primary key on documents