update app.js to commit to db, fix todo_controller.js typo