Exception was causing an exception due to a type error, fix that so the nice message works.
* Human readable database inconsistent error In case a db error causes an exception, check validate and show the db errors to the user in the webui. * only failed validations * fix style