method for execute database update