avoid extending the query class

Signed-off-by: Martin Bastien <martin.bastien@studiofrenetic.com>