insights: Migrate historical recorder to new database state
Created by: coury-clark
The historical search recorder currently reads directly from settings to find insights. This should be migrated to use the InsightStore
which is backed by the database.