Add a setting to control storing messages in the db