Fix app.js and db.js