Now time stats are written to db (untested)