Fix bug causing old users to not be purged from the database