Fix 'dbHash' not found

- added dbHash to default-settings
- changed initialization from direct db access to api access
- added dbHash to tests