added all the features along with sort based on highest total time in particular state by hourly based and changed some logics in database so that data is inserting for correct states