separate couchdb initialization
setup reader