updated erd, database, model