SONAR-5007 fix db migration when registering q profiles