Added edit page and fixed app.rb to incorporate edit commands for database