mem db useing shared memory