Fix recursively deleting jobqueues with postgres

Addresses #254.