Add ability to group by months to query object