Translating ER Diagrams to Relational Schemas