Change next/previous relation to use a pid saved in DescMetadata instead.