Adds migration script to fix all profile counts
Fixes login in 2 places:
Due to the isolation level, since we were updating the user and the profile_count (which depended on the user) in the same transaction, the Read Committed isolation level did not read the state of the DB at the time of the command, but instead the state before the transaction started.
When existing user joins a community, it now handles with a incrementProfile
Link to Issue
Closes: #9721
Description of Changes
Test Plan
For both fixes, check the before and after on some community (say we are testing the skale-testing community. We would check http://localhost:8080/skale-testing/members?tab=all-members).
Testing the two fixes: