Cleaned up query view (i.e., added codemirror etc)