Database with MemoryPool