Fixed persistence upgrades to handle the id field. Fixes to Cordova editing.