#63 lastInsertId fix for postgres

Still works with mysql
Merge pull request #64 from eddiejaoude/postgres-lastInsertId

#63 lastInsertId fix for postgres