Added indexDB support