SensorContext.config() doesn't retrieve my custom property from table

SonarQube plugin for SonarQube 7.7:
While performing scan using sonar scanner sonar-scanner-,
my SonarQube plugin tries to access propertied in the sonar db, and the properties are null.
The same property is available using Web Service /api/properties , when running:
SensorContex.config().get(“myProp”) there are no results.

I tried with the sonar built in DB, and then changed it to SQLServer DB called “sonar”.
The DB existed before and while starting sonar, I had to upgrade it using http://localhost:9000/setup