1)modify the fields type from longtext to varchar(20) for query speed enhancement, 2)little refinement for template