Issue #1: Add checks for configuration_group_id

Update both of the uninstall scripts so that the
configuration/configuration_group tables have elements removed ONLY if
the configuration_group_id value is non-0.