Sets errmode in our db instantiation code
Merge pull request #98 from robotpony/db-fix

Sets errmode in our db instantiation code