def create_profile_collection(database, profile): """Adds the given profile to the database. Returns the newly inserted profile record. """ profile_dao.remove_profile_collection(database) profile = profile_dao.create_profile_collection(database, profile) return profile
def remove_profile_collection(database): """Completely removes a profile collection from storage in the specified database. """ return profile_dao.remove_profile_collection(database)