Capture and report db errors more helpfully.
Merge pull request #935 from arjclark/db.catch_dup_error

rundb: Capture and report db errors more helpfully.