Add query generation method to ExtPDO