Add switch on mongo_uri instead of mongo_host.