added way of computing necessary db space