Improved couchdb debugging