protected function storeTable($table)
    {
        $fh = fopen($this->dataFile($table), 'w');

        fputcsv($fh, $this->keys[$table]);

        foreach ($this->rows[$table] as $row) {
            fputcsv($fh, $this->sanitiseRow($table, $row));
        }

        fclose($fh);
    }