Fixed the setting a value in the database