Fixed sqlite compatibility of 'updateTourneyTypeId' and removed duplicate cleanUpTourneyTypes