working with db.js