added db.js