Add script for couchdb to create a view