DocumentRestRepository for couchdb