replaced static cache with memory cache
transaction support for Query()