added active column to addMaterial insert