Connection errors now passes -1 back.

When the connection errors trying to process the query, it will pass a -1 back to the controller letting it know it was an internal (non-database related) error.