caching database object