About issue 403

This editor was loaded after the MapContext, then it was null and cannot be used to show sql results in the Toc. Now it fetches the MapContext each time the user runs a bunch of sql requests.
About issue #403