add database relationship for tl_materials and tl_materials_category