Update SqlCommander.cs

refactored code.