It looks like you have most of the problem solved. To populate the remaining fields, you need to include them in the INSERT statement, using values you have stored elsewhere (those you list are in the SMS_IN table, by the look of it.
It may be better to have a Customer table which holds the Id...