def read_evid_db(dat_content, BN):
  """
    Returns a list of dictionaries.
    For each dictionary:
      Key: var_name
      Val: var_state
  """
  
  # remove \n
  dat_content= [i[:-1] for i in dat_content]
  
  dat_db= [] # List of dictionaries. Each dictionary is a map of var_name to var_state

  var_lst= dat_content[0]
  var_lst= var_lst.split(',')
  
  # Assert that var_name is indeed from our BN
  for var in var_lst:
    assert var in BN

  evid_lst= dat_content[1:]

  for evid in evid_lst:
    evid= evid.split(',')
    evid_dict= {}
    for idx, var in enumerate(var_lst):
      state= evid[idx]
      assert state in BN[var].states
      evid_dict[var] = state
    
    dat_db.append(evid_dict)
  
  return dat_db