NOJIRA: updating UCBG grants to Postgres functions