error handling, NewLecturerDialog, fixed postgresql's id sequences