The script that displays the roster, reads it from the database and formats it as an HTML page the users browser can display.
To add a new student record, the user completes a form which is sent to the Web server. The Web server then adds a record to the database using the values in the form.
The script that deletes a student record also calls the database server, which deletes it.
The application documentation explains how it works.