PersistanceMgr and CacheMgr changes

PMgr: Added update, select, updateorinsert
CMgr: Store and retrieve string and int values with string key