typo in db.js