Merged app.js and db.js