Move reporting functionality to DB class