Make db_path honour ~ and $HOME