Add deleteByQuery and getObjects