added time range for queries (20 days)
added latestActivity filter