New feature for issue #2419

use `frappe.db.set_value`