adds packet sorting to consumer.py W/O switch!

also moves table creation code to db.py. we may want to merge db.py and
can.py depending on analysis.py. also contains misc improvements / pyc
code