Sets database name via env vars as well.