Removed one error and made the connection object private