Fix dumping more than 1000 records with jsondb