More work on indexedDB implementation.

More work on indexedDB implementation.