Connecting iOS App to MySQL Database

I just read through and followed Chris’ --> The Best Way to Connect Your iOS App to MySQL Database (4 Steps) and ran into some problems and was hoping to find answers here.

Every time I run Chris’ code I run into the problem of poiCoodinates being nil and have no idea how to fix it. If anyone has run into this problem and found a way to fix it I would love any help thanks!