Revert "Get rid of unused parameter."

This reverts commit aa7736aa7a004cddfe4bea3518d49ad514f770f1.

Delicious waffles.
Revert "Get rid of db shenanigans, use Queue API."

This reverts commit b2fa5e553cbc9ce2701ddf95b8d39d6592405e24.

Delicious waffles; turns out to be too slow...