Add mean_date column to database