Use SQL SUM instead Python sum() to calculate XCP supply