add repl capability to couchdb