add indexes on rev(sequence) reference to make pruneRevision faster