Fetch method never ends when there is no namespace + deprecation warning Express 4

When no namespace is found (there is nothing in the mongodb collection for instance) then the fetch method never ends.

Fix as well a deprecation warning when using Express 4