Updated DAL to handle statistics.