Added method to get main (most frequent) date for each table for use in search