code from import.js has moved to scraper/lib/db.js