#63 lastInsertId fix for postgres

Still works with mysql