Added some basic query functions

Not sure how useful these will be, but I just thought I'd take a second to add them.