update instrument query sql