populate stats tables