Create a new data connection by going to tools -> Data connections that is a connection to the form library where you want the form submitted. Then go into Tools -> Submit options and check the perform custom action using rules. In the rules add two actions, one to submit to your db and one to submit to the SharePoint library you just ...