inserting packet data into postgres