update scraper sql
modularize pipeline access to database