fix relationships and seed data