Reorganizing SQL to adhere to constraints. Commenting out creation of database during scrape as it does nothing currently