move to pg cursor