finish inmemorydb

Signed-off-by: zhouyou <zhouyoug@gmail.com>