Add DB file generation