[src] using the same query logic for stmt * Query and conn * Query