(daleharvey/pouchdb#1387) - pass object instead of 2 arguments for plugins