Removed deadlock mechanism to get 6 teams working and sorted teams on ranking in db query