move database code into its own module
include version in test report
move report generation into its own module
regroup stats and scoreboard into a single request