It is a server side language that talks to the database. You did not mention what one your using. I shall assume its php or a flavor of it that talks to the DB.
If your using <form> in your UI, then just direct it to the php file you will write to interface with the DB.
<form action="My Php File" method="post">