Refactor code to modularize inference datastore

- extractor runner is not refactored yet
- do not test mysql yet