fix sql update statement.