add relations between records