public function getFormattedQueries()
    {
        $formattedQueries = array();
        foreach ($this->getQueries() as $query) {
            if (!isset($query['type'])) {
                print_r($query);
                exit();
            }
            $formattedQuery = array(
                'connection' => $query['connection'],
                'database'   => $query['database'],
                'type'       => $query['type'],
                'time'       => $query['time'],
            );

            foreach (array(
                'connection',
                'database',
                'type',
                'time',
            ) as $key) {
                unset($query[$key]);
            }

            $formattedQuery['query'] = Yaml::dump($query, 'batchInsert' == $formattedQuery['type'] ? 6 : 2);

            $formattedQueries[] = $formattedQuery;
        }

        return $formattedQueries;
    }