Extract common SQL behavior into shared context and examples
Generate update statement