Update Databse on GridEditing
Improve Coding Style