made edits so that the analyze output was formatted clearly.  Plus, made edits to avoid a config/startup error from the legacy sql code