state diagram
basic scraping & myql code