(#1583) - properly destroy idb (and websql)