Generate dbname from env