expose WithDB class and DB

That makes them visible to haddock
Also WithDB can in theory be usefull for client code