added Model::query method.