Adding queries to user-cli

The queries aren’t complete yet, and most of the stuff is commented out
for now because I have reservations of it working.