Tables v2

rename validateAndExecuteInputQuery