Small bugfixes for popularity DB report.