cleaned up new Mongo connection logic.