ensure connection to mongo is open