add query to calculate database size