Refactored SQLCommander.