Fix to reuse a connection

The problem was that a new connection was created every time when
'mongo' was called. And I don't think it was intentional.