If this insert fails because there actually is a unique key problem, a PDOException will get thrown here. So I added a try/catch for that, and a bit more minor code cleanup in this commit:

https://github.com/ginatrapani/ThinkUp/commit/2ffb73972824f89fa9560077a4b13ec196513a9d

Otherwise (pending the Travis green light on  my code-review branch) this is good to go! Such a big user experience upgrade.