added database updates to Stats page