added updateHardStorage function to update certain keys in the client memory to the indexedDB