Enabled writing DB to file
Bugfixes
Bugfix
Bugfix
Bugfix
Bugfix
Edited file writing
Bugfix
Reduced number of writes to file
Bugfix