beginning gliderecord query functions