ios connect database
http://code.tutsplus.com/tutorials/titanium-mobile-database-driven-tables-with-sqlite-part-2--mobile-4031
http://www.raywenderlich.com/3932/networking-tutorial-for-ios-how-to-create-a-socket-based-iphone-app-and-server
http://www.raywenderlich.com/2941/how-to-write-a-simple-phpmysql-web-service-for-an-ios-app
http://codewithchris.com/iphone-app-connect-to-mysql-database/