tag occurrence count added
logical exception
database classes modified