remove the USE $database because the query after that doesn't require us to be inside the database
move the database size query outside of the for loop because it makes no sens to run it for every database when said query returns the size of each database anyway
Type of change
[x] Patch fixing an issue (non-breaking change)
[ ] New functionality (non-breaking change)
[ ] Functionality enhancement or optimization (non-breaking change)
[ ] Breaking change (patch or feature) that might cause side effects breaking part of the Software
Community contributors
Description
USE $database
because the query after that doesn't require us to be inside the databaseType of change
How this pull request can be tested ?
I have no clue
Checklist