some progress on appSettings table sql