Studies in synthesis and applications of nitrogen and oxygen containing heterocycles for anti diabetic and anti cancer activity