mongodb cache functionality added