modified app.json, fixed database.js