MVStore: unique indexes that were created later on did not work correctly if there were over 5000 rows in the table.