Added deleteByQuery methods to Dao.