Fixed issue in getting new primaryKey when inserting in PostgreSQL

When inserting an auto-increment entry in PostgreSQL, lastInsertId requires the sequence name as parameter. (See http://www.php.net/manual/en/pdo.lastinsertid.php)