Use ssl flag when generating connection string, remove hardcoded value