lastInsertedID now works normal for pgsql.