Bugfix on db write.

Jira issue: HUBWH-6
Correction on Readme

Jira issue: HUBWH-6
Merge pull request #22 from steverc/HUBWH-6-fixing5

Hubwh 6 fixing5