added code to stop adding dups to the knownitems table