Improve client db access script.
Parallelize get_docs on couch backend (#5008).