Adds the error mode attribute setting code that was recently added in 1....

...1.

@bruce-alderson 

This just adds the same error code setting to the DB class that was added with this commit 20a6a289c6c4ff04e7bcb29219bb026e2e50ebe2

In the 1.1 branch (master)