Add getObjects and deleteByQuery