fix database dir on windows

Signed-off-by: xiehuc <xiehuc@gmail.com>