Differentiating between Query and Command methods