- fast data save and reorganise code

- improve datafile table write
- run queries class code refactoring