modified scrape_locations to take locations from db
modified scrape_locations to take locations from db