self join many to many configuration