Functional hydrogels for treatment of dental caries