added neccessary changes to input setting sql