If you have a form, the form either has a "action" attribute which specifies that URL where your data goes:
<form method="post" action="my_script.php">
</form>
or your browser will submit the data you entered in the form to the same URL where the form lives. If your form is displayed in a static HTML page with no action attribute, then the data will be GETed or POSTed to the static HTML form -- which accomplishes nothing at all.
So when you say "it's not getting to the database" then you really should be examining the flow of data
display form to user ==> user fills out form and clicks "submit" ==> data is routed to the URL specified in the form's ACTION attribute or to the same URL as the form if no action is specified ==> the form handling script receives the submitted data, processes it, and tries to stick it in the database, which may or may not succeed
It's also a good idea to be more specific than "nothing happens". Did you click submit? does your form even have a submit button? when you click submit, does a blank page load? do you get a javascript error?