Working on db.js