get the database connection info from environment variable