Realistic time correlations in sandpiles