Secondary data source connections to databases are readonly.
You should be able to write the code to directly communicate with the database, and then set up the Command property to do whatever functionality is required (provided you have adequate permissions on the database).
Greg Collins [InfoPath MVP]