CORE: changed instance SQL handle to be instantiated when instance is requested, and freed when the instance is finished loading (note: this reverts the change to free mysql login/pass from map config - it will be visible to anyone who reads a .dmp)