[development] correct way to update/insert a value in a table