[opendir] check directory exists and create.
[mysql] First example

http://zetcode.com/tutorials/mysqlcapitutorial/