write settings back to database right after resetting database in order
to keep user defined settings