I've recently dived into the Objective C world and OSX programming. 

One thing I am struggling to figure out how to do is how to execute simple SQL queries.

I've been coding in PHP for years and I'm used to the simple habits of:

```
mysql_connect(host, user, pass);
$query = mysql_query(SELECT * FROM `somedb`.`sometable`);

while($row = mysql_fetch_array($query)) {
    print($row['column1']);
    ...
    print($row['column5']);
}

```

or something along the lines of that. *(Side note: I don't use the monstrous classic mysql statements anymore. I use PDO. For purposes of demonstration of logic and simplicity I used it to easially convey my point on what I roughly need to do in ObjC. Don't shoot me down for using it in the example :P)*

Is there any way at all to be able to **execute a similar set of functions in Objective C?** Simply to connect to a remote MySQL server on a remote machine and either `INSERT`, `UPDATE`, `SELECT` or `DELETE` rows?