using smartsql for update