finished refactoring of the session cache to mongo