support option feature(indexedDB)
clean code