import db in ingest script