fixes cardinalities in ER diagram