Added sequence name for PostgreSQL

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