added mongodb storage
make html reports optional