You want to insert or update data in a SP list from InfoPath?
This can be done using a CAML. Search on CAML here and you will find the information you need.
You may be referring to pulling data into InfoPath from a list. Just setup a receive data connection to the list and you will import that data for use in your form.