Migrating to storing a primary key index for records
more primary key index refinements