add packetType filter to db methods, save packet trust distance correctly