read database env var