Added user settings and new common SQL