Refactored parameter logic; corrected error
Added SQLCommand example.