% arara: datatooltk: {output: test-out.dbtex, input: data-raw.dbtex}
\documentclass{article}

\usepackage{datatool}

% original
\input{data-raw.dbtex}

\begin{document}

\DTLdisplaydb{mydata}

\DTLdeletedb{mydata}

% output from datatooltk
\input{test-out.dbtex}

\DTLdisplaydb{mydata}

% load csv file

\DTLloaddb{testcsv}{test.csv}

\DTLdisplaydb{testcsv}

% load db created from csv file

\input{test-csv-out.dbtex}

\DTLdisplaydb{test}

% load db create from sql query

\input{test-sql-data.dbtex}

\DTLdisplaydb{testsqldata}

\end{document}
