fixed references in the database between models and corrected an error in list model, belongs_to