[DS-2169] Author profiles for XMLUI

Author profiles contribution by the World Bank in collaboration with @mire
Can this Author Profile db update sql go inside the transaction?
i.e. Postgres transaction logic is:
BEGIN;
-- all your SQL creates/updates
COMMIT;

We're using the transaction, so there's less to break on upgrades.