finished adding simple couchdb access and tests for it