Fix 'dbHash' not found

closes #1685
- changed dbHash initialization from db direct access to api access
- added dbHash to default-settings.json
- added dbHash to tests
Merge pull request #1687 from sebgie/issue#1685

Fix 'dbHash' not found