Script to upload catalog data to couchdb