Trying to fix: <ERROR:  cannot drop the currently open database> and reorganizing the env vars.