Added interface to couchdb