Update template.h

New date type mongo