edit sql to find resubmissions