AbstractParsedStmt: moved addTableToStmtCache inside the addScanColumn method