Fix for issue #65

Remove entries in the pivot table "users_groups" before deleting the user or group.