The approach I took when using Katalon for automated tests was to have a microflow to setup the database into a known state that could be called before each test was run.
Hope this helps
If you do the tests on the Mendix test environment in the cloud you could use the Mendix API to restore the backup.
Or you can use additional test scripts to delete the data that was created earlier. If needed, double check the removal.