Compute min and max zoom by querying the tiles table.