Change the documents model to embedded and add save method to the repository