testing faster db method
updated the method to get all the data at once on the day chart page