Fix working tree problem after accidentally moving db