add ability to query data for whole day and whole month