create collection when document added if it does not exist