PHP script to populate DB

Data is pulled form Nest and inserted into mySQL db.