scrape the database data