Let the configuration writer return the database connection.
Split up service providers.

This way, configuration writing is available to the console.
Update installer command, use factory for creating it.
Remove old methods from installer class.
Require Symfony's console component instead of Illuminate.