Query wrap up

Query page now functional. Just need to add advanced query options (show field, AND, OR, etc.) and we'll be done.