implementations for demo by using mongo; cachedClientsSettings (max_questions bug)