(PDB-589) Add indexes to environment foreign keys

While using benchmark to test out the sizes of the new indexes, I found the wire format versions it was using to be old, so I bumped that in this PR too.