Added date to query