Defining the E-R diagram of database