shift mongo config to separate class