Modified size subquery to handle database > 16TB.