Implementing superset attributes. Custom not handled right now,
but flatgs are set as to wether to include them. Need to be passed
into the custom query