db: switch the async db path and sync db in workers.
work: tighten up error handling and db connection release.
work: minor docstring adjustment.
requeue: pass in delay param.
cleanup: implement cleanup process to delete old tasks.