Store packets with sqlite instead of in memory, and some code clean up
Make autoscrolling more smooth, better type comparison, create sqlite db if it doesn't exist