Write output files
DB for dependency tracking