add upsert function

Move update & updateGet to PersistStore