altered update sql, REF #108