Exposed util function GetDb().
Fixing path resolution.

The HTTP server was incorrectly looking up unresolved paths.
This obviated the ability of using a dynamic resolver, like the
URIRequestResolver.