Change 3 files yml with data from a database

Job ID: 33471410

Budget: $30 – $250 USD

I have a system with which I would like to edit and add rows to 3 yml files (nlu, domain and rules from RASA), with the following characteristics.
The RASA files have a basic structure that the user can't see

Insert... inserts the records at the end of the yml file.
Edit ... modifies specific lines of the yml file.
Delete ... deletes the specific lines of yml file

There is a button for saving to a database and a button for training ... when trained without errors the "Trained" column is modified to 1, if the user only inserts records without training the trained column is kept at 0. This can also be done by querying if the intents are already in the file.

It has to work without errors, so everything has to be validated so that the system does not let train if there are errors (special characters, etc.).
Related categories: PHP JavaScript Python Software Architecture SQLite