Add querying by date