The SERVER tag specifies server-side JavaScript statements that are used in a JavaScript application on the server. (Contrast this with theSCRIPT tag, which specifies client-side JavaScript statements that run in the browser.) When a script is specified within the SERVER tag, it is run on the server before the page is passed to the browser. See Writing Server-Side JavaScript Applications for more information.
Syntax
<SERVER>...</SERVER>
Example
<P>Your IP address is <SERVER>write(request.ip);</SERVER>
As for database access, you have to check out IPLANET which is Netscape's webserver, and LiveWire Database Service. JavaScript applications use the LiveWire to connect the application to a relational database.