[UPDATE] migrate all file operations to sqlite db

- change from files to sqlite
- migrate all file operations into sqlite