had $ in front of pg_fetch