Adding tests for IndexedDB
Adding setData, addData, putData to IndexedDB. Fix issue with resolving promises in same turn.
Don't resolve addData and putData promises in same turn.