Update main.js

still messing with indexedDB.  Still have no clue what I'm doing