Charts now display data corresponding to database grouped by day
small clean up