Save metadata for collection and module