http://www.codeproject.com/Articles/43438/Connect-C-to-MySQL