Migrate existing data to project_totals table