Revert "Revert "insights: execute database migrations (#17586)" (#17701)"
Created by: slimsag
This reverts commit 5fca3e614d221704fd197b85390e27f4de8ed5b7.
This brings back the execution of code insights database migrations, which is safe to do now that #17731 has landed.
Helps #17218 (closed)
Signed-off-by: Stephen Gutekanst [email protected]