add date ranges for queries