Update DB path and delete useless files