I believe currently the script crashes sometimes if the primary key is duplicated. Would be nice if it gave a non-zero exit code instead. Adding this to the README would be valuable!