Labs: merge in changes to maintain-replicas.pl

- Match the new (3 combined databases) replication system.
- add pr_index
- add rev_content_{model,format}

Bug: 54164
Change-Id: Ia395229802a5520330a114f561fa4546a79626ae