To clarify what jwenting was saying:
Basically use something like jsp, asp, php or coldfusion to communicate between your applet and your database. For example I use several coldfusion pages, located on the server, where the applet is located to communicate to my db. This way it doesn't matter...