fix newTask popup issues, create db.js
big change because of swith from LocalDB to IndexedDB