Overwrite existing records in IndexedStore (Fixes #2182)