make dberr.Error thread-safe
Merge pull request #78 from omeid/master

Make dberr.Error thread-safe.
fix doc update
catch up with master