db.js for everything