write_account_stats