(a) sql for creating dynfield for each material_type, using a dropdown widget (select) with the materials (not yet filtering by material type or by task_type_id of the project)