first working db.js