SONAR-5810 Fix migration when project key does not exists
SONAR-5605 Restore mysql client side cursor