Uses SSL by default, falls back to no SSL, fixes schema that could be null

@nickgartmann @jeregrine 
whats this?