(#2394) - fewer allDocs transactions for idb/websql

Ensures that when using the `keys` query option,
there's only one transaction that's used for both
websql and idb