er diagram to table conversion rules