You can rewrite this using fabric because we have a hack to return a shard list for the dbs db as a single shard on the local node:

    https://github.com/cloudant/mem3/blob/master/src/mem3.erl#L86

Also, I already rewrote the internal view API. That's the first thing you made me do when I started working for Cloudant. Granted we never got around to merging it in...