You can do it the same way you do it with a
java application, with minimal changes. As long as th applet and the DB are located on the same server. There is an example at Sun's site. You can also search this forum. It has been discussed a number of times.