Add HAVING clause support to query builder