modify letv template and SQL