refactor otherDates to perform just 1 query for all