converting er diagram to table in dbms