PGSQL query template sharing