fix has_many relations and add seed data