Move db logic into controllers
Create rails form