fix db opening error with absolute path on windows

fix SQLITE_CANTOPEN error when cached.Database is called with absolute path on windows
use path.resolve for getting absolute path