Implement pgsql STH repository