using db.js instead of pouch, seems to only work in chrome