working sql parser