fix duplicats of tool type (SQL)