Add small improvements

Provide better logging
Check sqlcmd is registered