get distinct query working again
update capnp schema to support queries