Pj relate pids

Specs are still busted, but I wanted to get the PR open to share the ingestion code. Still fixing the tests.