Setup dynamic query header