Add query for getting owned tasks with exp. date before specified date