Add support for setting the global default dsn on the sync function