skytools: pgqd script fixes