Reworking scidb ingest (phase 1)

Abstracting calls to scidb into plugin