Statistics:moved sql parsing to ustatistics