Fixed addition and modifications of settings.
Fixed SQL query to update settings.
Added missing 'op2' parameter when creating set definition from query.
Avoid unnecessary repetitions of chosen values in selection box for m1/m2/m3 parameters for queries.