Update database config
Update it again
Fix database config. Update Gemfile.lock
Update routes. add edit/main controllers.