Fix SQL UPDATE code to push parameters in the correct order.