added couchDB support