#39. Fixed issue with DB errors.
Merge pull request #40 from bmarshall511/Bug-39

#39. Fixed issue with DB errors.