Update couchdb to allow key range queries