Fix syntax errors in generateConnectionString