Added index size checks for databases and collections.