Writes scraped info to database.