Made to_db() more functional style.
Added filterting to printing.
Improvements to season stats. Some refactoring.