Remove setting_id field from SQL
Modify setting model to do upserts