public static function syncConfig(Connection $connection, array $configs, \Closure $callback)
    {
        foreach ($configs as $row) {
            $config = $connection->fetchAssoc('SELECT id, name FROM fusio_config WHERE name = :name', [
                'name' => $row['name']
            ]);

            if (empty($config)) {
                self::insertRow('fusio_config', $row, $callback);
            }
        }
    }