Well, the design of the usrloc db_mode 2 is that the memory is used as write-back cache. So it is not expected to be changed from database. If you are just looking for some variables from a DB, maybe just using sqlops, htable or avpdbops (just to name a few possibilities) are available.