Modify provisionning for couchDB and throw errors in the API