Similar Items: $n$-permutability and linear Datalog implies symmetric Datalog