major rework of unmatched messages query structure

went from 30+ seconds to load 400 records to 500ms.. SCORE!
continued re-work of slow moving queries
date formatting logic moved into sql