- Added ErrorMsg class to handle error display and error logging in db