move env.db into setup_path()