Some changes to how date range is determined, now retrieved from
DBWorker.