Fix bug updating IDs on records.
Fix bug updating IDs on records.

* Fix incorrect update to internal data structure in the store: was mapping the
  store key back to the old id instead of the new one.

adityab/overture,linagora/overture,linagora/overture,fastmail/overture,Hokua/overture