avg age statistic working

And added Status and Yeartype classes. to be replacing 2 database
tables. yiha!