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

@nickgartmann @jeregrine 
Well maybe should only call if ssl=True. otherwise possible infinite loop