Improved performance of the pyrimidine-modified porous In-MOF and an in situ prepared composite Ag@In-MOF material.