Fixes

- Fix link between publications and pending documents
- Register uuid from psycopg2.extras