added has_many relations
relations between models updated