PostgreSQL query parsing and normalization library