Almost done sql parsing