Use the XDG cache dir for the database instead of the data dir