trying to work out the dynamic query_params for the addMaterial insert