protected function getDatabaseConfigs(array &$return)
    {
        $return['localhost'] = 'localhost';

        $return['host']     = $this->connection->getConfig('host');
        $return['database'] = $this->connection->getConfig('database');
        $return['username'] = $this->connection->getConfig('username');
        $return['password'] = $this->connection->getConfig('password');
        $return['connection_username'] = $return['username'];
        $return['connection_password'] = $return['password'];

        if ( ! in_array($return['host'], ['localhost', '127.0.0.1']))
        {
            $return['localhost'] = $this->command->ask('Database is on the other server. Provide local IP/hostname.');
        }
    }