Few minor tweaks, fix CouchDB file perms