Auto-select a connection using the mongodb driver