Where would the appropriate place be to invoke code for inserting an item into a table? In this case I'm dropping onto a view and want something to show up as a result.

Right now I'm calling insert to act on the container in the model. Then I call setdata and finally I actually call a sql statement to insert into the table. Should the sql insert be called elsewhere? I'm a bit uncertain about what would be "natural" in this case.