distinguish different kinds of sqlite3.IntegrityError
further distinguish ItegrityError
only count 'not unique' errors, ignore 'constraint failed'
simplified, no output if just junk data
copied error checking detail to other functions