Add live stats rendering

Stats page now displays actual data retrieved from the database.