update SqlTemplete and change to selectOne