This is a known issue, and has been reported to the Dreamweaver development team for investigation.
There is no workaround we're aware of; however, many other users have recommended creating your own re-usable code to accomplish these tasks.
You can learn to use PHP with MySQL using a number of resources, including books, videos, and tutorials. Here are a few of these that should be helpful:
http://www.phpeasystep.com/mysql.php
http://www.siteground.com/tutorials/php-mysql/
http://www.w3schools.com/php/php_ref_mysql.asp
Some users in this thread are discussing their methods for working with their own code:
http://forums.adobe.com/thread/1029084