short scripts to manage couchdb documents