fixes for couchdb setup