Added db insert for team stats