@sandeepone 

Are you sure that's a good idea to store the settings in the database? 
At this moment the settings are not saved in the database, at least they are read from the configuration file, but not from the database.