Package index not rebuilt when resources deleted

looks like we should be updating the package here which will also force a reindex.  Also looks like resource_group table is not being updated.

Should we fix bad data in these tables?