Rename some fields in DB.permission.
Add exception handle middleware. Move middlawares into separate files.