Switch cache system to use MongoDB