rm function rename to be more descriptive.
add indexedDb support