Fix Windows database path bug
Remove unused declarations