added create couchdb views function