Rationalized queues / jobs. Crawling in the mud with threads and cursors (Unable to use a closed cursor)