update database and add E-R diagram