Fix insert not using $primaryKey on Postgres