unique and not null constraints added for settings table