move index.js to work.js
label teams properly to avoid confusion
used IndexedDB to store settings over reload