first pass at all query functions for gliderecord