moved palettes to settings, moved settings from py to db