fixing relationships and er diagram pdf