Fixing database. Moving forms to rails helper functions