An exercise in normalizing databases, and displaying basic tables in Rails