Fix using environment variables. Use bridge_db.json instead of text file.