Revert, set stoptime to last day to not produce incomplete graphs
Use async mode for temporary database
(the script can crash if no SQL transaction is pending when executing COMMIT)
Use a seperate function for benchmarking