create script for chouchdb databases