select count(1) as duplicate from ttracker_categories where upper(name) = upper(:name) and package_id = :package_id