successfully abstracted create_entities function and implemented it in entries#update