adding biggest tables select, fixing division by zero error in selects