Queries for the GUI

They’re pretty basic and rough. Just to help us with the searches and
such for the GUI