Dunghm: Trend line update sql