Added couchdb data retrieval scripts