db.js is a wrapper for IndexedDB to make it easier to work against