renaming devices can result in duplicate entries. prune duplicates by removing all but the _oldest_ entry in the database