@spec find_load_file(fname :: binary()) :: {:ok | :error, path :: binary()}
@spec upsert_record( state :: map(), collection :: atom(), data :: map(), claims :: list() | nil, commit :: function() ) :: {:ok, record :: map(), state :: map()} | {:error, state :: map()}