implement OrientDB::query() method.