Controlling primary key for ordered insert: checking out of order, writing latest val to index, etc