preparing ground for caching in mongodb