update app.js
update db, provide module to access database
backend