Currently, the database and configuration are assumed to be in a consistent and correct state. If users manually edit them, however, the configuration may be in a broken state (e.g. selectors have values that are other than their correct options, numbers being negative, etc.). We therefore need to implement validation to better hangle these edge cases, perhaps by reporting errors to the instance administrator.