CHANGELOG
[x] create a database writer
[x] setup option and save persistencely
[x] setup saving timing
[x] backup on startup
[x] backup on timing
[x] backup on closing

p.s. code is now well commented :*