Revised data models for better foreign key handling and generated new views and controllers.
More revised models.