Fixed typo in example

Also updated deprecated function names related to the most recent version of the MySQL module.