report: fix glitch introduced by db refactoring (using db without defining it).
report: fix glitch introduced by db refactoring (using db without defining it).

git-svn-id: f68c6b3b1dcd5d00a2560c384475aaef3bc99487@10215 af82e41b-90c4-0310-8c96-b1721e28e2e2

moreati/trac-gitsvn,exocad/exotrac,moreati/trac-gitsvn,exocad/exotrac,moreati/trac-gitsvn,exocad/exotrac,moreati/trac-gitsvn,exocad/exotrac