Add index on foreign keys.
Fix seeds.
Remove unused helpers. Add missing index on foreign keys.
Fix law of demeter. Remove unused templates. Replace instance variable with local variable.
Simplify render in controllers.
Fix left law of demeter problems.
fix conflict