update db.js and settings.js