Uses NSURLConnection to query a MySQL database