added the ability to introduce a mongodb url instead of host + name