Add classes structure to persist exceptions to the database