download all pids as csv