add compact data layer (support for leveldb only)