Allow a uri to be specified for mongodb