Created outline for calling queries of varying type. Also cleaned up some debug prints.