fred add functionality for one or two level queries
fred add first, second level descriptor vars
fred parent-child and prefs setup