Updates the lastpacket column in the nodes table when a new packet is added