[feature/first-release] use sqlite db to save app state