Fix haddock linking
Add 'withDB' bracket and fix examples