Enabled writing DB to file