You might share from what version of Moodle to what version of Moodle, for starters. And from what hosting. IF coming from a commercial hoster that had highly customized the site, don't think they share what customizations they did with code nor DB.
'DB migration from another moodle instalation to a brand new one'
suggest one might not be aware one cannot hyperjump from older versions to newest version depending upon version.
Are you using the following for how-2?
'mess with and edit' suggest you have an SQL dump of the database.
No ... I'd not recommend trying to insert sql for missing tables in an sql file
There are 9 tables in a 3.9.highest related to analytics ... the one you've mentioned is the first of 9.
Also makes one wonder how many more/other tables there are missing from the 4Gig SQL dump of your site.
If not a lot of courses, the path of least resistance and technical issues (in your case) might be full course backups from old site restored to newly installed version X.