Some of the old mysql db code was left in the report, which was throwing errors, but functionality was not affected.

Fixes #245