How to save Setting pages data to the database?

How to save Setting pages data to the database?

error code: 523