Updated the number of tuples button

Wrote queries to calculate the total amount of tuples in all our
databases.