use couchdb_toQuery directly