created relationships and joins for trainer, group & student