Use formatnumber for benchmarking and print final script run time
Set $dbdata along other global variables
Clean code used to set starttime, stoptime