Add support for a UI warning box.
Database fixes. Moved error handling to JSON utils