Analysis of asteroid lightcurves. I - Data base and basic reduction