building addMeterial Insert query