database closen in package categorizer