add option to purge the database; check for supersedes;superseded_by