Optimized dbActions by only opening database once and offloading setValue to web worker!