Change queries to use GetUploadtreeTableName and not hardcode "uploadtree".  This improves
performance on systems with large uploads and lots of jobs.