Store user type in conf too improve load performance
Improve data upgrade method