Hi Ram,
This is a good idea. Have you searched on "passing parameters or passing arguments"? Lots of stuff exists in this forum that explains how to do it. Greg has at least one blog post and so does Jim, although they are quite different. The InfoPath blog by Microsoft also has a post.
The other way to do it is by writing code inline that updates the DB but that will require SQL permissions if you aren't using a Web Service.
You can programmatically update lists in SharePoint without fancy permissions, but you're using a DB.
After updating, you'll have to add a refresh button to requery the DB.