add db.js and setting file