Bug fix: PostgreSQL last insert ID (Issue #410)