Bug: mongo connection defined twice