PN-8
Fixed function typo in previous commit.
PN-8
Missed one exception being thrown by PDO on insert.