Updated AbstractConnector::query method