fix a error in db.js