Insert in collection write items in file

collection file was created but calling insert() was not actually writting items in it.