Fix for #4707 pgsql getLastGeneratedValue() Problem

Added the sequence name to getLastGeneratedValue() which is required for PostgreSQL