sorted the all statistics output
updated the db