new query for relational database
changed scraper to use new relational databases