settings model now saving settings to database