PID must be indexed, so we can find those records which do not have it.
Rake task to change all unslugged documents.