Basic decoding of packets and store in SQL