remove old api and add setup and teardown code for couchdb integration tests