replaced jQuery.deferred from indexeddb data-manager with Promises
use Promise instead of jQuery.deferred in WebSQL data-manager