Updated sql visitor to implement technical fouls