read balance data, write to table