Simplified backend connection logic