Slight rewrite of model insert logic

Removed manual hacking on PDO and made it more readable.