Isn't [this](https://github.com/daleharvey/pouchdb/blob/057a038748c516800b33959efc3d298580fe97de/lib/constructor.js#L138-L141) already taking care of that?