Update data from a table to DB

I have used a binding function to populate data in table.In the execute() method i have done a select query operation which fills the table.
When i change the table properties to editable and edit data, it goes back to original value since the polling is not off.

I want the data to be saved in the DB when i edit a cell in the table. How can i achieve this functionality?