stl: transform & store in indexeddb