in reply to how do I redirect to a previous page in my CGI script

You can try putting:
print header(-location=>'name.html');
After you update your databas

Thanks.

Hotshot