Adds id_only to query

This just exposes id_only one more method up, the UI needs the objects, not the IDs.