An intelligent database system application: The design of EMS