Eddited Controller to do only what we want and added a migration to add foregein key