build a sql_connection string for db_sync