db.js small fix