Fix Windows database path bug