Bugfix in db.js so that the app runs