fixed update and edit controllers. gitignored databse.yml