just some notes on how this might work
sorting out how couchdb works.