A document database with a small footprint