sql fixes; no nbsp