The World Wide Web(WWW) is a useful tool for browsing information which is scattered in computer networks. With the growing popularity of WWW, the importance of accessing database via WWW has been increased. A database gateway allows WWW users to get database services effectively. However, the previously proposed database gateways have two problems. One is that they cannot process many user requests concurrently and reliably because of using resources exclusively for user requests. The other is that they can't support complex database services.
In this thesis we propose a new database gateway based on template structure model, which uses a Database Gateway Language(DGL), to alleviate the above two problems. In addition, we implement the proposed gateway that consists of a dispatcher, a template interpreter, and templates. A template is a script file which describes a database service written in DGL. The DGL supports not only SQL operations but also other valuable operations such as arithmetic, conditional branch, external program interface and so on. Through simulation experiments, we show that the gateway based on the template structure model processes and manages many user requests more concurrently and reliably than the previously proposed method.