draft functional approach

- delta load
- sqlite3 backend
- refactored code with functions