added db.js and utils.js