Make queries editable.
Correctly save edited queries.