simplify sql parser