refactor couchdb config file

- database init
- change test call