How to update modifiedby in database through sail

Hi All , I have an editable grid from where i am populating data from the db object and also i have an option to add new column . When a user change on existing column then i have to update modified by in database . can u please tell how can i achieve this 

  Discussion posts and replies are publicly visible