database updated and displaying the sorting of activity hourlybased based on total time from highest to lowest
changed displaying style showing time in hh :mm  : ss instead of milli seconds
changed some of the logics of inserting data to save data into database correctly