Add basic algorithm for updating mayor.
Insert db connection to editor.
Add loading mayor from database.