Save to database

Please add option to save user preferences to database

This feature was implemented.