Rename upgrade:generate to install:generate. It's more clear.

Remove unnecessary use statements.
Inject install config and use it to determine tables for which to export data.