Use C to call the mysql database stored procedure