Made querying from miranda work for a lab meeting (normal function doesn't work)