Changed IndexedDB provider to use RW context if RO is requested. Fixes issue #128