Change queries table