Fix 'db' option - was getting confused about $HOME.