#70 the sqlprovider hardcode for dictionary,should make it dynamic
.refactor the common.js