Added primary index support for indexedDB.
Experiment with scheduler.