add as400 primary key support and re-add explain method