changed db.js