* Don't use @lang() it doesn't escape the string
Found an issue where a string contained a single quote and broke the page.
* fix regex errors
* fix another style of mis-replacement
* found another issue
* 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