added app context to controllers
made one view use the database