sql input update

-fix problem with exception if ssid name is weird
-fix identical task name