Added pgsql trigger building