added couchdb support for message capture