reducing er diagram to table in dbms