upgrades: when deleting, only select primary key as the result instead
of selecting everything. HINT: this is based on the primary key is
foreign key.