Using ace instead of codemirror for scripting
Modifying also sql