mkdirp when db path is long & not exist

Signed-off-by: TZ <atian25@qq.com>