Fixes invitations and disable this feature when using MySQL