Unify POSTGRESQL test URI fetching