Added ability to throw an error if node is down.
Added details on formatting SQL