protected function setDatabaseConfiguration($connection, &$database, &$configs)
    {
        $configs = [];

        if( is_array($database) )
        {
            $configs  = $database;
            $database = $connection;
        }

        $configs['database'] = $database ?: $this->defaultDatabaseName;
    }